package com.hdax.dm.entity.item;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hdax.dm.entity.BaseTimeEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("dm_item_type")
public class DmItemType extends BaseTimeEntity {

  @TableId
  private Long id;
  private String itemType;
  private String level;
  private Long parent;
  private String aliasName;

  /*如果字段是关建字，就加上TableField*/
  @TableField(value = "`key`")
  private String key;

}
